{extends 'form.html'}
{block name="nav_hotel"}			
	<ul class="current">
		<li><a href="ctlr_hotel-act_all"><b>Hotels</b><!--[if IE 7]><!--></a><!--<![endif]-->
			<!--[if lte IE 6]><table><tr><td><![endif]-->
			<div class="select_sub show">
				<ul class="sub">
					<li><a href="ctlr_hotel-act_all">View all hotels</a></li>
					
					<li {if !isset($hotel->id) || $hotel->id eq ""}class="sub_show"{/if}>
						<a href="ctlr_hotel-act_create">Add hotel</a>
					</li>
					<li {if isset($hotel->id) && $hotel->id ne ""}class="sub_show"{/if}>
						<a href="#nogo">edit hotel</a>
					</li>
				</ul>
			</div>
			<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
	</ul>
	<div class="nav-divider">&nbsp;</div>
{/block}
{block name="op-title"}
		<h1>Select Imagex from all unassigned facilitys</h1>
{/block}
{block name="msgs"}	
		<div id="message-blue">
			<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="blue-left">Welcome back. <a href="ctlr_facility-act_create">Create new facility.</a> </td>
					<td class="blue-right"><a class="close-blue"><img src="{$assets}images/table/icon_close_blue.gif"   alt="" /></a></td>
				</tr>
			</table>
		</div>	
		{if isset($info)}
		<div id="message-green">
			<table border="0" width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td class="green-left">{$info}. <a href="ctlr_facility-act_create">Add new one.</a></td>
					<td class="green-right"><a class="close-green"><img src="{$assets}images/table/icon_close_green.gif"   alt="" /></a></td>
				</tr>
			</table>
		</div>
		{/if}		
{/block}
{block name="listORform"} 		
		<div id="content-table-inner">
			<!--  start table-hotel  -->
			<div id="table-content">
				{block name="msgs"}
					{include file="inc/msg.inc.html"}
				{/block}
				<!--  start product-table ..................................................................................... -->
				<form id="mainform" action="ctlr_hotelfacility-act_assign" method="post">
					<input type="hidden" name="id" value="{$hotel->id}">
					<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
						<tr>
							<th class="table-header-check"><a id="toggle-all" ></a> </th>
							<th class="table-header-repeat line-left minwidth-1"><a href="">Name</a></th>							
							<th class="table-header-repeat line-left minwidth-1"><a href="">Icon</a></th>							
						</tr>
						{section name=nr loop=$facilitys}
						<tr {if $smarty.section.nr.iteration is odd} class="alternate-row"{/if}>
							<td><input name="facility_ids[]" value="{$facilitys[nr].id}" type="checkbox"/></td>
							<td>{$facilitys[nr].name}</td>
							<td><img src="{$assets}images/facility/{$facilitys[nr].icon}"></td>
						</tr>
						{sectionelse}
						<tr><td colspan="3" align="center"><br><b>no facilitys found. </b> <br> </td></tr>
						{/section}				
					</table>
				<!--  end product-table................................... --> 
				</form>
			</div>
			<!--  end facility-table  -->
		
			<!--  start actions-box ............................................... -->
			<div id="actions-box">
				<a href="" class="action-slider"></a>
				<div id="actions-box-slider">
					<a href="" onclick="document.forms['mainform'].submit();return false;" class="action-edit">assign</a>
					<a href="ctlr_hotelfacility-act_facilitys?id={$hotel->id}" class="action-delete">cancel</a>
				</div>
				<div class="clear"></div>
			</div>
			<!-- end actions-box........... -->
			
			<!--  start paging..................................................... -->
			<table border="0" cellpadding="0" cellspacing="0" id="paging-table">
			<tr>
			<td>
				<a href="#" class="page-far-left"></a>
				<a href="#" class="page-left"></a>
				<div id="page-info">Page <strong>1</strong> / 15</div>
				<a href="#" class="page-right"></a>
				<a href="#" class="page-far-right"></a>
			</td>
			<td>
			<select  class="styledselect_pages">
				<option value="">Number of rows</option>
				<option value="">1</option>
				<option value="">2</option>
				<option value="">3</option>
			</select>
			</td>
			</tr>
			</table>
			<!--  end paging................ -->
			<div class="clear"></div>
		</div>
{/block}		